home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / X11 / extensions / scrnsaver.h < prev    next >
C/C++ Source or Header  |  2006-04-12  |  4KB  |  131 lines

  1. /*
  2.  * $XConsortium: scrnsaver.h,v 1.6 94/04/17 20:59:34 keith Exp $
  3.  *
  4. Copyright (c) 1992  X Consortium
  5.  
  6. Permission is hereby granted, free of charge, to any person obtaining a copy
  7. of this software and associated documentation files (the "Software"), to deal
  8. in the Software without restriction, including without limitation the rights
  9. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  10. copies of the Software, and to permit persons to whom the Software is
  11. furnished to do so, subject to the following conditions:
  12.  
  13. The above copyright notice and this permission notice shall be included in
  14. all copies or substantial portions of the Software.
  15.  
  16. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  17. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  18. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  19. X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  20. AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  21. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  22.  
  23. Except as contained in this notice, the name of the X Consortium shall not be
  24. used in advertising or otherwise to promote the sale, use or other dealings
  25. in this Software without prior written authorization from the X Consortium.
  26.  *
  27.  * Author:  Keith Packard, MIT X Consortium
  28.  */
  29. /* $XFree86$ */
  30.  
  31. #ifndef _SCRNSAVER_H_
  32. #define _SCRNSAVER_H_
  33.  
  34. #include <X11/Xfuncproto.h>
  35. #include <X11/extensions/saver.h>
  36.  
  37. typedef struct {
  38.     int    type;            /* of event */
  39.     unsigned long serial;   /* # of last request processed by server */
  40.     Bool send_event;        /* true if this came frome a SendEvent request */
  41.     Display *display;        /* Display the event was read from */
  42.     Window window;        /* screen saver window */
  43.     Window root;        /* root window of event screen */
  44.     int state;            /* ScreenSaverOff, ScreenSaverOn, ScreenSaverCycle*/
  45.     int kind;            /* ScreenSaverBlanked, ...Internal, ...External */
  46.     Bool forced;        /* extents of new region */
  47.     Time time;            /* event timestamp */
  48. } XScreenSaverNotifyEvent;
  49.  
  50. typedef struct {
  51.     Window  window;        /* screen saver window - may not exist */
  52.     int        state;        /* ScreenSaverOff, ScreenSaverOn, ScreenSaverDisabled*/
  53.     int        kind;        /* ScreenSaverBlanked, ...Internal, ...External */
  54.     unsigned long    til_or_since;   /* time til or since screen saver */
  55.     unsigned long    idle;        /* total time since last user input */
  56.     unsigned long   eventMask; /* currently selected events for this client */
  57. } XScreenSaverInfo;
  58.  
  59. _XFUNCPROTOBEGIN
  60.  
  61. extern Bool XScreenSaverQueryExtension (
  62.     Display*    /* display */,
  63.     int*    /* event_base */,
  64.     int*    /* error_base */
  65. );
  66.  
  67. extern Status XScreenSaverQueryVersion (
  68.     Display*    /* display */,
  69.     int*    /* major_version */,
  70.     int*    /* minor_version */
  71. );
  72.  
  73. extern XScreenSaverInfo *XScreenSaverAllocInfo (
  74.     void
  75. );
  76.  
  77. extern Status XScreenSaverQueryInfo (
  78.     Display*        /* display */,
  79.     Drawable        /* drawable */,
  80.     XScreenSaverInfo*    /* info */
  81. );
  82.  
  83. extern void XScreenSaverSelectInput (
  84.     Display*    /* display */,
  85.     Drawable    /* drawable */,
  86.     unsigned long   /* eventMask */
  87. );
  88.  
  89. extern void XScreenSaverSetAttributes (
  90.     Display*            /* display */,
  91.     Drawable            /* drawable */,
  92.     int                /* x */,
  93.     int                /* y */,
  94.     unsigned int        /* width */,
  95.     unsigned int        /* height */,
  96.     unsigned int        /* border_width */,
  97.     int                /* depth */,
  98.     unsigned int        /* class */,
  99.     Visual *            /* visual */,
  100.     unsigned long        /* valuemask */,
  101.     XSetWindowAttributes *  /* attributes */
  102. );
  103.  
  104. extern void XScreenSaverUnsetAttributes (
  105.     Display*    /* display */,
  106.     Drawable    /* drawable */
  107. );
  108.  
  109. extern Status XScreenSaverRegister (
  110.     Display*    /* display */,
  111.     int        /* screen */,
  112.     XID        /* xid */,
  113.     Atom    /* type */
  114. );
  115.  
  116. extern Status XScreenSaverUnregister (
  117.     Display*    /* display */,
  118.     int        /* screen */
  119. );
  120.  
  121. extern Status XScreenSaverGetRegistered (
  122.     Display*    /* display */,
  123.     int        /* screen */,
  124.     XID*    /* xid */,
  125.     Atom*    /* type */
  126. );
  127.  
  128. _XFUNCPROTOEND
  129.  
  130. #endif /* _SCRNSAVER_H_ */
  131.